<?php
/*
//由于已经可以保证结构正确，所以不从抽象类继承。
require_once("Stratosphere.ServerLog.class.php");
class  StratosphereServerLog extends AbstractStratosphereServerLog{
*/
class StratosphereServerLog {
	
	public function __construct($options=null) {
	}
	function __destruct(){
	}
	
	private function log($level,$str){
		$access = date("Y/m/d H:i:s");
		sae_debug( $level.":".$access ." ".$_SERVER['REMOTE_ADDR']."(".$_SERVER['HTTP_USER_AGENT'].")".$str);
	}
	//打印一条调试日志
	function Debug( $str ){
		$this->log('Debug',$str);
	}
	//打印一条轨迹日志
	function Trace( $str ){
		$this->log('Trace',$str);
		
	}
	//打印一条通知日志
	function Notice( $str ){
		$this->log('Notice',$str);
		
	}
	//打印一条警告日志
	function Warning( $str ){
		$this->log('Warning',$str);
		
	}
	//打印一条致命日志
	function Fatal( $str ){
		$this->log('Fatal',$str);
	}
}
?>